<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
    'as'         => config('admin.route.as'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->resource('categories', 'CategoriesController', ['except' => ['show']]); // 分类管理
    $router->resource('tags', 'TagsController', ['except' => ['show']]); // 标签管理
    $router->resource('products', 'ProductsController', ['except' => ['show']]); // 商品列表
    $router->resource('home_configs', 'BannerConfigsController', ['only' => ['index', 'edit', 'update'] ]); // 首页配置
});
